package com.edu.hre.struts.form.admin;

import java.util.ArrayList;
import java.util.List;

import org.apache.struts.action.ActionForm;
import org.apache.struts.util.LabelValueBean;

import com.edu.hre.common.entity.HrePageInfo;
import com.edu.hre.db.pojo.HreUserRole;

public class UserListForm extends ActionForm {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4022413612705443937L;
	
	private String userName = "";
	private String selectedUserRole = "";
	private String employeeName = "";
	private int selectedStatus = 2; // 0 for disabled, 1 for enabled and 2 for all.

    private boolean canAdd = false;
    private boolean canDelete = false;
    private boolean isAsc = true;
    private int totalItems = 0;
	private int totalPage = 0;
	private List<HrePageInfo> listPages = new ArrayList<HrePageInfo>();
    
    private List<UserForm> allUsers = new ArrayList<UserForm>();
    private List<LabelValueBean> allUserRoles = new ArrayList<LabelValueBean>();
    private List<LabelValueBean> allStatuses = new ArrayList<LabelValueBean>();
    
    public UserListForm () {
    	
    }

	public boolean isCanAdd() {
		return canAdd;
	}

	public void setCanAdd(boolean canAdd) {
		this.canAdd = canAdd;
	}

	public boolean isCanDelete() {
		return canDelete;
	}

	public void setCanDelete(boolean canDelete) {
		this.canDelete = canDelete;
	}

	public boolean isAsc() {
		return isAsc;
	}

	public void setAsc(boolean isAsc) {
		this.isAsc = isAsc;
	}

	public int getTotalItems() {
		return totalItems;
	}

	public void setTotalItems(int totalItems) {
		this.totalItems = totalItems;
	}

	public int getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public List<HrePageInfo> getListPages() {
		return listPages;
	}

	public void setListPages(List<HrePageInfo> listPages) {
		this.listPages = listPages;
	}

	public List<UserForm> getAllUsers() {
		return allUsers;
	}

	public void setAllUsers(List<UserForm> allUsers) {
		this.allUsers = allUsers;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getSelectedUserRole() {
		return selectedUserRole;
	}

	public void setSelectedUserRole(String selectedUserRole) {
		this.selectedUserRole = selectedUserRole;
	}

	public String getEmployeeName() {
		return employeeName;
	}

	public void setEmployeeName(String employeeName) {
		this.employeeName = employeeName;
	}

	public int getSelectedStatus() {
		return selectedStatus;
	}

	public void setSelectedStatus(int selectedStatus) {
		this.selectedStatus = selectedStatus;
	}

	public List<LabelValueBean> getAllUserRoles() {
		return allUserRoles;
	}

	public void setAllUserRoles(List<LabelValueBean> allUserRoles) {
		this.allUserRoles = allUserRoles;
	}

	public List<LabelValueBean> getAllStatuses() {
		return allStatuses;
	}

	public void setAllStatuses(List<LabelValueBean> allStatuses) {
		this.allStatuses = allStatuses;
	}
}
